home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / animTests / bezier_boxes.s3d next >
Text File  |  2000-06-17  |  3KB  |  138 lines

  1. Background {
  2.     color 0 0 0
  3. }
  4. DEF world-TIMER TimeSensor {
  5.     loop TRUE
  6.     cycleInterval 3.333
  7. }
  8. DEF Box01 Transform {
  9.     translation -39.25 0 99.57
  10.     children [
  11.         Transform {
  12.             translation -60.75 0 0.4343
  13.             children [
  14.                 Shape {
  15.                     appearance [
  16.                         MultiAppearance {
  17.                             material Material {
  18.                                 diffuseColor 0.6039 0.6039 0.898
  19.                             }
  20.                         }
  21.                     ]
  22.                     geometry MultiMesh {
  23.                         coord DEF Box01-COORD Coordinate {
  24.                             point [
  25.                                 -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  26.                             ]
  27.                         }
  28.                         coordIndex [
  29.                             0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  30.                             2 0 4 -1 4 6 2 -1
  31.                         ]
  32.                         smoothingIndex [
  33.                             2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  34.                         ]
  35.                         appearanceIndex [
  36.                             1 1 0 0 4 4 3 3 5 5 2 2
  37.                         ]
  38.                         textureMappings [
  39.                         ]
  40.                     }
  41.                 }
  42.             ]
  43.         }
  44.         DEF Box01-BEZPOS-INTERP BezierVecInterpolator {
  45.             key [
  46.                 0 0.5 1
  47.             ]
  48.             keyValue [
  49.                 -39.25 0 99.57 -59.09 0 -6.666 -59.09 0 -73.4 -39.25 0 -100.4 -39.25 0 -100.4 -19.42 0 -127.5 20.32 0 -114.9 79.83 0 -62.75
  50.             ]
  51.         }
  52.         ROUTE world-TIMER.fraction_changed TO Box01-BEZPOS-INTERP.set_fraction
  53.         ROUTE Box01-BEZPOS-INTERP.value_changed TO Box01.set_translation
  54.         DEF Box01-EULER-INTERP EulerXYZInterpolator {
  55.             xInterpolator BezierScalarInterpolator {
  56.                 key [
  57.                     0 0.5 1
  58.                 ]
  59.                 keyValue [
  60.                     0 0 0 0 0 0 0 0
  61.                 ]
  62.             }
  63.             yInterpolator BezierScalarInterpolator {
  64.                 key [
  65.                     0 0.5 1
  66.                 ]
  67.                 keyValue [
  68.                     0 -0.7021 -1.223 -1.562 -1.562 -1.901 -2.058 -2.033
  69.                 ]
  70.             }
  71.             zInterpolator BezierScalarInterpolator {
  72.                 key [
  73.                     0 0.5 1
  74.                 ]
  75.                 keyValue [
  76.                     0 0 0 0 0 0 0 0
  77.                 ]
  78.             }
  79.         }
  80.         ROUTE world-TIMER.fraction_changed TO Box01-EULER-INTERP.set_fraction
  81.         ROUTE Box01-EULER-INTERP.value_changed TO Box01.set_rotation
  82.         DEF Box02 Transform {
  83.             translation 48.02 0 -45.1
  84.             children [
  85.                 Shape {
  86.                     appearance [
  87.                         MultiAppearance {
  88.                             material Material {
  89.                                 diffuseColor 0.3451 0.7804 0.8824
  90.                             }
  91.                         }
  92.                     ]
  93.                     geometry MultiMesh {
  94.                         coord DEF Box02-COORD Coordinate {
  95.                             point [
  96.                                 -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  97.                             ]
  98.                         }
  99.                         coordIndex [
  100.                             0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  101.                             2 0 4 -1 4 6 2 -1
  102.                         ]
  103.                         smoothingIndex [
  104.                             2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  105.                         ]
  106.                         appearanceIndex [
  107.                             1 1 0 0 4 4 3 3 5 5 2 2
  108.                         ]
  109.                         textureMappings [
  110.                         ]
  111.                     }
  112.                 }
  113.             ]
  114.         }
  115.     ]
  116. }
  117. DEF Camera01 Viewpoint{
  118.     position 2.983 113.4 362.3
  119.     orientation 0.9614 -0.2725 -0.03926 -0.2975
  120.     fieldOfView 0.6024
  121.     description "Camera01"
  122. }
  123. DEF Camera01.Target Transform {
  124.     translation -28.44 0 -21.85
  125.     children [
  126.         DEF Camera01.Target-BEZPOS-INTERP BezierVecInterpolator {
  127.             key [
  128.                 0 0.07
  129.             ]
  130.             keyValue [
  131.                 -28.44 0 -21.85 -28.44 0 -21.85 -28.44 0 -21.85 -28.44 0 -21.85
  132.             ]
  133.         }
  134.         ROUTE world-TIMER.fraction_changed TO Camera01.Target-BEZPOS-INTERP.set_fraction
  135.         ROUTE Camera01.Target-BEZPOS-INTERP.value_changed TO Camera01.Target.set_translation
  136.     ]
  137. }
  138.